extract math equations from hand-written text